/**
 *科室名字
 * @param id
 * @param name
 * @param caption
 * @param path 相对应用路径
 * @param col1 显示字段
 * @param col2 值字段
 * @param tbl 表名
 * @return
 */
function getCombox4(id, name, caption, path, col1, col2, tbl){
    var store = new Ext.data.JsonStore({
        root: 'datalist',
        url: path + '/js/comboxdata.jsp?mode=2&col1=' + col1 + '&col2=' + col2 + '&tbl=' + tbl+"&wheresql=where ftype='I'",
        fields: ['name', 'value']
    });
    store.load();
    var combo1 = new Ext.form.ComboBox({
        id: id,
        mode: 'remote',
        fieldLabel: caption,
        name: name,
        emptyText:"请选择...",
		//style:'color:red',
        typeAhead: true,
        triggerAction: 'all',
        displayField: 'name',
        hiddenField:'name',
        valueField: 'value',
        hiddenName:'value',
        selectOnFocus: true,
        store: store
    });
    return combo1;
}

